package com.itcncp.common.rongCloud.models;

import com.itcncp.common.util.JsonUtils;

//图片消息
public class ImgMessage extends Message {

	private String content;
	private String imageUri;
	private Object extra;

	public Object getExtra() {
		return extra;
	}

	public void setExtra(Object extra) {
		this.extra = extra;
	}

	public ImgMessage(String content, String imageUri) {
		this.type = "RC:ImgMsg";
		this.content = content;
		this.imageUri = imageUri;
	}

	public ImgMessage(String content, String imageUri, Object extra) {
		this(content, imageUri);
		this.extra = extra;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImageKey() {
		return imageUri;
	}

	public void setImageKey(String imageUri) {
		this.imageUri = imageUri;
	}

	@Override
	public String toString() {
		return JsonUtils.toJson(this);
	}
}
